<?php

namespace app\api\controller;

use app\common\controller\Api;


/**
 * 单页接口
 */
class Page extends Api
{

    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];

    public function _initialize()
    {
        parent::_initialize();
        $this->model = new \app\common\model\Page();
    }

    public function getpage(){
        $type = $this->request->request('type');
        $type == 1 ? $title="购买须知" : $title="关于我们";
        $data = $this->model->get(['title' => $title]);
        $this->success('',$data);
    }

}